B. Compilation error as multiple as the interface can’t be
instantiated in Solidity
C. Code would have issues in getting deployed
D. None of these
Q110: What would be the issue in the following code?
// SPDX-License-Identifier: SOME IDENTIFIER
pragma solidity ^0.8.10;
abstract contract AbstractContract1 {
function someFunction1() public pure virtual returns(string
memory);
}
abstract contract AbstractContract2 {
function someFunction2() public pure virtual returns(string
memory);
}
contract ImplementorContract is AbstractContract1,
AbstractContract2 {
function someFunction1() public override pure returns(string
memory) {
return “some message 1”;
}
function someFunction2() public override pure returns(string
memory) {
return “some message 2”;
}
}
A. No issues at all. The code would compile and run successfully
B. Compilation error as multiple inheritance is not supported in
Solidity
C. Code would have issues in getting deployed
D. None of these